
.home-container {
  min-height: 140vh;
  background: #f5f5f5;
}

/* 顶部导航栏 */
.header {
  background: linear-gradient(135deg, #6278db 0%, #635da6 100%);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.nav-left {
  display: flex;
  gap: 30px;
}

.nav-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.user-icon {
  font-size: 16px;
  opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 轮播图展示区 */
.carousel-section {
  margin: 30px 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 如果图片加载失败，显示渐变背景 */
.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6278db 0%, #635da6 100%);
  z-index: -1;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 40px 30px 30px;
}

.carousel-title {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.carousel-subtitle {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: white;
}

/* 轮播控制按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* 功能卡片区 */
.feature-section {
  margin: 20px 0;
}

.feature-cards {
  display: flex;
  gap: 20px;
}

.feature-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 150px;
  position: relative;
  background: linear-gradient(135deg, #6278db 0%, #635da6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* 为功能卡片添加图标 */
.card-image::after {
  content: '📋';
  font-size: 36px;
  position: absolute;
  z-index: 1;
}

.feature-card:first-child .card-image::after {
  content: '🏆';
}

.feature-card:last-child .card-image::after {
  content: '📢';
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

/* 内容介绍区 */
.intro-section {
  margin: 10px 0;
}

.intro-content {
  background: white;
  border-radius: 15px;
  padding: 40px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  line-height: 1.8;
}

.intro-content h2 {
  color: #333;
  font-size: 24px;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.intro-content h3 {
  color: #333;
  font-size: 20px;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.intro-content p {
  color: #666;
  font-size: 16px;
  margin: 0 0 15px 0;
}

.divider {
  margin: 30px 0;
  padding: 20px 0;
  border-left: 4px solid #6278db;
  padding-left: 20px;
}

/* 新闻列表样式 */
.news-list {
  margin-top: 20px;
}

.news-item {
  padding: 15px 0;
  margin-bottom: -10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e9ecef;
}

.news-item:hover {
  background: rgba(219, 219, 219, 0.05);
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  color: #5e5e5e;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-summary {
  margin-bottom: 0;
  /* margin-left: 28px; */
}

.news-summary p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  }
  
  .no-news {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.no-news p {
  margin: 0;
  font-size: 14px;
}


.footer-btn {
  background: linear-gradient(135deg, #6278db 0%, #635da6 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(98, 120, 219, 0.3);
  margin-top: 20px;
  margin-left: 80px;
  margin-bottom: 20px;

}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(98, 120, 219, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nav-container {
    padding: 10px 15px;
  }
  
  .nav-left {
    gap: 15px;
  }
  
  .nav-item {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .user-btn {
    font-size: 13px;
    padding: 6px 15px;
  }
  
  .user-icon {
    font-size: 14px;
  }
  
  .main-content {
    padding: 0 15px;
  }
  
  .hero-image {
    height: 250px;
    margin: 20px 0;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .feature-cards {
    flex-direction: row;
  }
  
  .intro-content {
    padding: 25px 20px;
  }
  
  .intro-content h2 {
    font-size: 20px;
  }
  
  .intro-content h3 {
    font-size: 18px;
  }
  
  .intro-content p {
    font-size: 14px;
  }
  
  .news-item {
    padding: 12px 0;
  }
  
  .news-title {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .nav-left {
    gap: 10px;
  }
  
  .nav-item {
    font-size: 13px;
    padding: 5px 10px;
  }
  
  .hero-image {
    height: 200px;
  }
  
  .hero-overlay {
    padding: 25px 20px 20px;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .intro-content {
    padding: 20px 15px;
  }
  
  .footer-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  .news-item {
    padding: 10px 0;
  }
  
  .news-title {
    font-size: 14px;
  }
  
  .news-summary p {
    font-size: 13px;
  }
}
